home *** CD-ROM | disk | FTP | other *** search
Text File | 2000-02-01 | 1.5 KB | 55 lines | [TEXT/CWIE] |
- //•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- // YELLOW EXTENSION TOOLKIT
- // File Name: YEHeader.h
- // © 1998-2000 by Rocco Moliterno-Yellowsoft. All Right Reserved
- //•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
- //You need this file plus "YE proto.h" in order to call extensions from within your own applications
- #pragma once
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #if PRAGMA_ALIGN_SUPPORTED
- #pragma options align=mac68k
- #endif
-
- typedef void (*YellowProc)(YEBlockPtr inData);
-
- #if GENERATINGCFM
- typedef UniversalProcPtr YellowEntryProcUPP;
- #else
- typedef YellowProc YellowEntryProcUPP;
- #endif
-
- //
- //
-
- #if GENERATINGCFM
- #define NewYellowEntryProcUPP(userRoutine) \
- (YellowEntryProcUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppYellowEntryProcInfo, GetCurrentISA())
- #define NewYellowEntryProc68k(userRoutine) \
- (YellowEntryProcUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppYellowEntryProcInfo, (ISAType) kM68kISA)
- #else
- #define NewYellowEntryProcUPP(userRoutine) \
- (YellowEntryProcUPP)(userRoutine)
- #define NewYellowEntryProc68k(userRoutine) \
- (YellowEntryProcUPP)(userRoutine)
- #endif
-
- #if GENERATINGCFM
- #define CallYellowEntryProcUPP(userRoutine, params) \
- CallUniversalProc((UniversalProcPtr)(userRoutine), uppYellowEntryProcInfo, params)
- #else
- #define CallYellowEntryProcUPP(userRoutine, params) \
- (*(userRoutine))(params)
- #endif
-
- #if PRAGMA_ALIGN_SUPPORTED
- #pragma options align=reset
- #endif
-
- #ifdef __cplusplus
- }
- #endif
-